package cn.b.sky.mes.andon.service.impl;

import java.util.List;

import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.b.sky.mes.andon.dao.AndonInterfaceDao;
import cn.b.sky.mes.andon.model.Andon;
import cn.b.sky.mes.andon.service.AndonInterfaceService;

/**
 * 
 * <strong>Title : AndonInterfaceServiceImpl.java<br></strong>
 * <strong>Package : cn.b.sky.mes.andon.service.impl<br></strong>
 * <strong>Description : </strong>MI读取ANDON主数据接口实现<br> 
 * <strong>Create on : 2016-10-18 下午2:28:25<br></strong>
 * <p>
 * @author JinQuan.Fu<br>
 * @version <strong>v1.0.0</strong><br>
 * <br>
 * <strong>修改历史:</strong><br>
 * 修改人|修改日期|修改描述<br>
 * -------------------------------------------<br>
 * <br>
 * <br>
 */
@Service("andonInterfaceService")
public class AndonInterfaceServiceImpl implements AndonInterfaceService {

  @Autowired
  private AndonInterfaceDao andonInterfaceDao;

  @Override
  public List<Andon> selectAndonListByWorkUnit(String siteCode, String workUnitCode,String andonGroup) {
    if (!StringUtils.isBlank(siteCode) && !StringUtils.isBlank(workUnitCode)) {
      return andonInterfaceDao.selectAndonListByWorkUnit(siteCode, workUnitCode,andonGroup);
    }
    return null;
  }

}
